package com.xiaofan.controller;

import org.springframework.web.bind.annotation.CookieValue;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @version 1.0
 * @author: 晓帆
 **/
@RestController
@RequestMapping("article")
public class DemoController {
    @RequestMapping("demo")
    public void get(@RequestHeader("Accept") String accept,@RequestHeader("Host") String host){
        System.out.println(accept);
        System.out.println(host);
    }
    @RequestMapping("cookie")
    public void cookie(@CookieValue("ligenli") String ligenli,  @CookieValue("songge") String songge){
        System.out.println(ligenli);
        System.out.println(songge);

    }
}
